void setup()
{
  attachInterrupt(0, right, CHANGE);
  attachInterrupt(1, left, CHANGE);
  Serial.begin(9600);
}

void loop() {}

void left()
{
  Serial.println("LEFT");
}

void right()
{
  Serial.println("RIGHT");
}
